<template>

  <el-button plain @click="dialgonVisible = 1">
    新增用户
  </el-button>

  <el-button plain @click="dialgonVisible = 2">
    删除用户
  </el-button>
  <Dialog v-model:visible="dialgonVisible" />

</template>

<script lang="ts" setup>
import Dialog from "./Dialog.vue";
import { ref } from 'vue';
const dialgonVisible = ref(0);

</script>